# Maintainer: Sergej Pupykin <pupykin.s+arch@gmail.com>
# Maintainer: Anders Bergh <anders1@gmail.com>

pkgname=6tunnel
pkgver=0.13
pkgrel=2
pkgdesc="Tunnels IPv6 connections for IPv4-only applications"
url="https://github.com/wojtekka/6tunnel"
license=('GPL')
arch=('loong64' 'x86_64')
depends=()
source=(https://github.com/wojtekka/6tunnel/releases/download/$pkgver/$pkgname-$pkgver.tar.gz)
md5sums=('b13ba5ad8efc5d74b2dd71c2df85ef35')
sha256sums=('8bc00d8dcd086d13328d868a78e204d8988b214e0c0f7fbdd0794ffe23207fe5')

build() {
  cd "$srcdir"/$pkgname-$pkgver
  autoconf
  ./configure --prefix=/usr
  make
}

package() {
  cd "$srcdir"/$pkgname-$pkgver
  install -Dm644 6tunnel.1 "$pkgdir"/usr/share/man/man1/6tunnel.1
  install -Dm755 6tunnel "$pkgdir"/usr/bin/6tunnel
}
